package com.rightsidetech.trade.dtos.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class TdCommodityUserAppPayOrderRequest implements Serializable {
    @ApiModelProperty(value = "订单编号",required = true)
    @NotBlank(message = "订单编号不能为空")
    private String orderNo;

    @ApiModelProperty(value = "交易类型: 0-小程序, 1-app",required = true)
    @Range(min = 0, max = 1, message = "交易类型不正确")
    @NotNull(message = "交易类型不能为空")
    private Byte tradeType;

    @ApiModelProperty(value = "小程序微信唯一标识ID",required = true)
    @NotBlank(message = "openid不能为空")
    private String openId;

/*    @ApiModelProperty(value = "优惠券编号")
    private String code;*/


}
